package com.up.stores.service;

import com.up.stores.entity.Address;

import java.util.List;

//处理收发货地址数据的业务层接口
public interface IAddressService {
    // 创建新的收货地址
    void addNewAddress(Integer uid, String type, String username, Address address);

    //查询某用户的收货地址列表数据
    List<Address> getByUid(Integer uid, String type);

    //修改某个地址信息(此处的address由前端界面对地址信息修改后传来)
    void changeAddress(Integer addId, Integer uid, String type, String username, Address address);

    //设置默认收货地址
    void setDefault(Integer addId, Integer uid, String type, String username);

    //删除收货地址
    void delete(Integer addId, Integer uid, String type, String username);

    //根据收货地址数据的id，查询收货地址详情
    Address getByAddIdAndType(Integer addId, Integer uid, String type);
}
